/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 删除停车场 POST /scenic/parkingLot/deleteLot */
export async function scenicParkingLotDeleteLotUsingPost({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.scenicParkingLotDeleteLotUsingPostParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyinglong>('/scenic/parkingLot/deleteLot', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 停车场详情信息 POST /scenic/parkingLot/getLotById */
export async function scenicParkingLotGetLotByIdUsingPost({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.scenicParkingLotGetLotByIdUsingPostParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingtingchechangxinxicanshuvo>(
    '/scenic/parkingLot/getLotById',
    {
      method: 'POST',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 分页查询停车场 POST /scenic/parkingLot/pageLot */
export async function scenicParkingLotPageLotUsingPost({
  body,
  options,
}: {
  body: API.ParkingLotQueryBo49e8256bD6c64cdd864057a4e8c3db94;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingPageDataVotingchechangxinxicanshuvo>(
    '/scenic/parkingLot/pageLot',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 保存停车场 传递id则进行修改 POST /scenic/parkingLot/saveLot */
export async function scenicParkingLotSaveLotUsingPost({
  body,
  options,
}: {
  body: {};
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyinglong>('/scenic/parkingLot/saveLot', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
